#include<iostream>
using namespace std;

int main()
{
	int a, b;
	cin >> a >> b;
	int t = a;
	a = b;
	b = t;
	cout << a << " " << b << endl; 
	
	return 0;
}
